﻿function renren() {
    var content_text = "";
    var title_text = $("#productname").html();
    var url = "http://share.renren.com/share/buttonshare.do?link=" + encodeURIComponent(location.href);
    window.open(url);
}
function kaixin() {
    var title_text = $("#productname").html();
    var content_text = title_text + "  最新价格：" + $("#nowPrice").html();
    var url = "http://www.kaixin001.com/~repaste/repaste.php";
    url += "?rtitle=" + encodeURIComponent('红酒网 推荐：' + title_text);
    url += "&rurl=" + encodeURIComponent(location.href);
    url += "&rcontent=" + content_text;
    window.open(url);
}
function sina() {
    var title_text = $("#productname").html() + "  最新价格：" + $("#nowPrice").html();
    var url = "http://v.t.sina.com.cn/share/share.php?";
    url += "&title=" + encodeURIComponent('@红酒网 推荐：' + title_text);
    url += '&url=' + encodeURIComponent(location.href);
    url += '&source=bookmark&content=utf-8&retcode=0';
    url += '&pic=' + $(".view img").attr("src");
    window.open(url);
}
function qzone() {
    d = document;
    t = d.selection ? (d.selection.type != 'None' ? d.selection.createRange().text : '') : (d.getSelection ? d.getSelection() : '');
    qzone = window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + escape(d.location.href), 'qzone');
    qzone.focus();
}
function qqwb() {
    var _t = '@红酒网 推荐：' + $("#productname").html() + "  最新价格：" + $("#nowPrice").html();
    var _url = encodeURIComponent(document.location);
    var _appkey = encodeURI("appkey");
    var _pic = $(".view img").attr("src");
    var _site = "";
    var _u = "http://v.t.qq.com/share/share.php?title=" + encodeURIComponent(_t) + "&url=" + _url + "&appkey=" + _appkey + "&site=" + _site + "&pic=" + _pic;
    window.open(_u);
}
function sohu() {
    var title_text = $("#productname").html() + "  最新价格：" + $("#nowPrice").html();
    var url = "http://t.sohu.com/third/post.jsp?";
    url += "&title=" + encodeURIComponent('@红酒网 推荐：' + title_text);
    url += '&url=' + encodeURIComponent(location.href);
    url += '&content=utf-8';
    url += '&pic=' + $(".view img").attr("src");
    window.open(url);
}
function netease() {
    var title_text = $("#productname").html() + "  最新价格：" + $("#nowPrice").html();
    var url = "http://t.163.com/article/user/checkLogin.do?";
    url += '&link=' + encodeURIComponent('http://news.163.com/');
    url += "&source=" + encodeURIComponent('网易新闻');
    url += "&info=" + encodeURIComponent('@红酒网 推荐：' + title_text);
    url += ' ' + encodeURIComponent(location.href);
    window.open(url);
}
